Carbon


RepositionWindow

Header: MacWindows.h Carbon status: Supported

Positions a window relative to another window or a display screen.

OSStatus RepositionWindow (
    WindowRef window, 
    WindowRef parentWindow, 
    WindowPositionMethod method
);
window

A pointer to the window whose position you want to set.

parentWindow

A pointer to the “parent” window, as defined by your application. In cases where the window positioning method does not require a parent window, you should set the parentWindow parameter to NULL.

method

A constant specifying the window positioning method to be used; see “RepositionWindow Constants” for descriptions of possible values.

function result

A result code.

DISCUSSION

Your application may call the RepositionWindow function to position any window, relative to another window or to a display screen. After positioning the window, RepositionWindow displays the window in its new position.

VERSION NOTES

This function is available with Mac OS 8.5 and later.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when WindowsLib 8.5 or later is installed. Exported by CarbonLib 1.0 and later and by WindowsLib 8.5 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)